/*
 * @Author: 梦付千秋星垂野 465943794@qq.com
 * @Date: 2022-11-17 16:06:03
 * @LastEditors: 梦付千秋星垂野 465943794@qq.com
 * @LastEditTime: 2022-11-17 16:36:09
 * @FilePath: /practise--chat-app-react-nodejs/webpackdemo/webpack.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const path = require("path"); //Node.js 内置模块
module.exports = {
entry: './src/main.js', // 配置入口文件
output: {

path: path.resolve(__dirname, './dist'), // 输出路径， __dirname ：当前文件所在路径
filename: 'bundle.js' // 输出文件

},

module: {
    rules: [
    {
    test: /\.css$/,
    use: ['style-loader', 'css-loader']
    
    }
]
}
}